﻿using System;

class SquareRoot
{
    static void Main()
    {
        try
        {
            uint number = uint.Parse(Console.ReadLine());
            Console.WriteLine("Sqrt({0}) =  {1}", number, Math.Sqrt(number));
        }
        /*
         * Handle ArgumentNullException, FormatException and OverflowException
         */
        catch (SystemException e)
        {
            Console.WriteLine("Invalid number");
        }
        finally
        {
            Console.WriteLine("Good bye!");
        }
    }
}
